/*
 * Copyright 2003-2006 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

%module(package = "argot") dictionary
%include "utils.i"


%define %read_dictionary_callback

%inline
%{
	int lua_read_dictionary( type_library * library, SWIGLUA_FN reader, type_map* map )
	{
		luaFunctionHandle func = storeLuaFunction(reader);
		int result = read_dictionary( library, lua_argot_read_callback, func, map );
		freeLuaFunction(func);
		return result;
	}
%}

%enddef


%include "../../swig/dictionary.i"